#!/usr/bin/env bash
set -x

# bash <(curl -L https://gitee.com/oraclegao/docker-image/raw/master/xmllint/xmllint) -x test.xml --xpath '//item[@name="bar"]/value/text()'
../xmllint -x test.xml --xpath '//item[@name="bar"]/value/text()'

# bash <(curl -L https://gitee.com/oraclegao/docker-image/raw/master/xmllint/xmllint) -x pom.xml --xpath '/*[local-name()="project"]/*[local-name()="properties"]/*[local-name()="java.version"]/text()'
../xmllint -x pom.xml --xpath '/*[local-name()="project"]/*[local-name()="properties"]/*[local-name()="java.version"]/text()'


